package com.sali.a_pre_knowledge.lesson_lsp.lession_01;

/**
 * @description:
 * @date: 2022/11/5 11:09.
 * @version: 1.0
 */
public class Children extends Parent {


    @Override
    public void run() {

    }

    /**
     * description: 此处破坏了里氏替换原则，不建议写
     *
     * @author: zhang hang
     **/
    @Override
    public void sayHello() {
        System.out.println("parent say hello");
    }


    /**
     * description: 扩展功能
     *
     * @author: zhang hang
     **/
    public void sleep() {
    }

    /**
     * description: 扩展功能
     *
     * @author: zhang hang
     **/
    public void work() {
    }
}
